![]() ![]() |
Q: When I unlock memory with A: It affects the whole page, not just a smaller part of it. The Virtual Memory
lock and hold functions not only lock or hold a page (or pages) of memory, they
also increment an internal counter associated with those VM pages. The counter
for a page of memory has to return to its initial value (i.e., the value the
counter was when the page was in the unlocked/unheld state) before a page is
finally unlocked or unheld. So, even if you allocate a little piece of memory
and lock it, and the rest of your page is locked by another program, the other
program's LockMemory and UnlockMemory calls won't affect your locks. [May 01 1995] |
Developer Documentation | Technical Notes | Development Kits | Sample Code |